package com.zygh.dlqwservice.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lee
 * @since 2020-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Operation对象", description="")
public class Operation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "operation_id", type = IdType.AUTO)
    private Integer operationId;

    @ApiModelProperty(value = "警号")
    private String policeId;

    @ApiModelProperty(value = "证书sn")
    private String sn;

    @ApiModelProperty(value = "身份证号")
    private String cardNo;

    @ApiModelProperty(value = "请求标识")
    private String requestId;

    @ApiModelProperty(value = "session标识")
    private String sessionId;

    @ApiModelProperty(value = "终端ip")
    private String terminalIp;

    @ApiModelProperty(value = "日志来源")
    private String source;

    @ApiModelProperty(value = "日志类型")
    private String logType;

    @ApiModelProperty(value = "功能模块")
    private String module;

    @ApiModelProperty(value = "原始请求参数")
    private String params;

    @ApiModelProperty(value = "请求参数")
    private String formatParam;

    @ApiModelProperty(value = "访问url")
    private String url;

    @ApiModelProperty(value = "uri")
    private String uri;

    @ApiModelProperty(value = "访问内容")
    private String content;

    @ApiModelProperty(value = "响应内容")
    private String response;

    @ApiModelProperty(value = "响应内容类型")
    private String responseType;

    @ApiModelProperty(value = "请求耗时", example = "1")
    private Integer responseTime;

    @ApiModelProperty(value = "响应内容类型html")
    private String result;

    @ApiModelProperty(value = "访问结果成功失败")
    private String errorCode;

    @ApiModelProperty(value = "操作失败时错误代码")
    private String errorLog;

    @ApiModelProperty(value = "源IP")
    private String sourceIp;

    @ApiModelProperty(value = "源端口", example = "1")
    private Integer sourcePort;

    @ApiModelProperty(value = "目的IP")
    private String destIp;

    @ApiModelProperty(value = "目的端口", example = "1")
    private Integer destPort;

    @ApiModelProperty(value = "日志记录时间")
    private Long time;

    @ApiModelProperty(value = "0表示未上传，1表示上传", example = "9")
    private Integer state;


}
